package com.yuanzong.wuliu.controller.app.system.apk;

import com.yuanzong.wuliu.common.vo.ApiResult;
import com.yuanzong.wuliu.service.app.system.apk.AppSystemApkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "app端 - apk")
@RequestMapping("/app/system/apk/systemApk")
@Slf4j
public class AppSystemApkController {

    @Autowired
    private AppSystemApkService appSystemApkService;

    @ApiOperation("最新版本APK")
    @RequestMapping(value = "/newVersion", method = {RequestMethod.POST})
    public ApiResult newVersion() throws Exception {
        ApiResult result = appSystemApkService.newVersion();
        return result;
    }
}
